package com.google.ball;

;

/**
 * @author Mucd
 * @Date 2020/12/7/007
 * @ClassName Test
 */
public class Test {
    public static void main(String[] args) {
        //从 10 米往下掉
        double a = 10;
        double f = 0;
        for (int i = 1; i <= 10; i++) {
            //每次掉落是上次的一半
            a /= 2;
            //把当前高度给 f
            f = a;
            System.out.println("第"+i+"弹跳是: "+ f + "M");
        }

    }
}
